﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace WebApi.Models
{
    /// <summary>
    /// 类型
    /// </summary>
    public class Category : BaseModel
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 所属父类型
        /// </summary>
        [BsonRepresentation(BsonType.ObjectId)]
        public string ? Parent { get; set; }
    }
}
